package com.jwsoft.manager.common.enums;

public enum EduStatusTypeEnum {
    dcl("0","待处理"),
    success("1","处理成功"),
    error("2","处理失败");

    private String type;
    private String name;

    EduStatusTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduStatusTypeEnum getByType(String type) {

        for (EduStatusTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
